package com.os.crm.pojo;

import net.bytebuddy.asm.Advice;

import java.io.Serializable;
import java.util.List;

/** 建表语句
DROP TABLE  crm_data_task;	

-- 创建表:数据采集任务
 create table crm_data_task (
    task_id int(20)  NOT NULL AUTO_INCREMENT COMMENT 'ID' ,
    task_name varchar(50),
    keyword varchar(1000),
    business_code varchar(12),
    business_name varchar(50),
    region_code varchar(12),
    region_name varchar(12),
    location varchar(500),
    location_lat varchar(20),
    location_lng varchar(20),
    execute_type varchar(20),
    plan_time varchar(20),
    start_time varchar(20),
    end_time varchar(20),
    insert_count int(10),
    update_count int(10),
    task_type int(10),
    source_type varchar(50),
    execute_count int(10),
    create_by int(20),
    update_by int(20),
    create_time varchar(20),
    update_time varchar(20),
    valid_flag int(1),
 PRIMARY KEY(`task_id`)  )ENGINE=INNODB DEFAULT CHARSET=utf8;


*/
/**
 * @author Administrator - 2022年2月5日
 * 所有实例都有: index (数据库里没有该字段)
 */
public class DataTask implements Serializable {

	private static final long serialVersionUID = 1L; 
	
	/**
     * ID
     **/ 
    public int task_id;
    
    public void setTask_id(int task_id) {
        this.task_id = task_id;
    }
    public int getTask_id() {
        return task_id;
    }
		/** 
     * 任务名称
     **/ 
    public String task_name;
    
    public void setTask_name(String task_name) {
        this.task_name = task_name;
    }
    public String getTask_name() {
        return task_name;
    }
		/** 
     * 查询关键字
     **/ 
    public String keyword;
    
    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }
    public String getKeyword() {
        return keyword;
    }
		/** 
     * 行类分类代码
     **/ 
    public String business_code;
    
    public void setBusiness_code(String business_code) {
        this.business_code = business_code;
    }
    public String getBusiness_code() {
        return business_code;
    }
		/** 
     * 行类分类名称
     **/ 
    public String business_name;
    
    public void setBusiness_name(String business_name) {
        this.business_name = business_name;
    }
    public String getBusiness_name() {
        return business_name;
    }
		/** 
     * 采集区划编号
     **/ 
    public String region_code;
    
    public void setRegion_code(String region_code) {
        this.region_code = region_code;
    }
    public String getRegion_code() {
        return region_code;
    }
		/** 
     * 采集区划名称
     **/ 
    public String region_name;
    
    public void setRegion_name(String region_name) {
        this.region_name = region_name;
    }
    public String getRegion_name() {
        return region_name;
    }
		/** 
     * 采集坐标
     **/ 
    public String location;
    
    public void setLocation(String location) {
        this.location = location;
    }
    public String getLocation() {
        return location;
    }
		/** 
     * 纬度
     **/ 
    public String location_lat;
    
    public void setLocation_lat(String location_lat) {
        this.location_lat = location_lat;
    }
    public String getLocation_lat() {
        return location_lat;
    }
		/** 
     * 经度
     **/ 
    public String location_lng;
    
    public void setLocation_lng(String location_lng) {
        this.location_lng = location_lng;
    }
    public String getLocation_lng() {
        return location_lng;
    }
		/** 
     * 任务执行方式
     **/ 
    public String execute_type;
    
    public void setExecute_type(String execute_type) {
        this.execute_type = execute_type;
    }
    public String getExecute_type() {
        return execute_type;
    }
		/** 
     * 计划执行时间
     **/ 
    public String plan_time;
    
    public void setPlan_time(String plan_time) {
        this.plan_time = plan_time;
    }
    public String getPlan_time() {
        return plan_time;
    }
		/** 
     * 实际执行开始时间
     **/ 
    public String start_time;
    
    public void setStart_time(String start_time) {
        this.start_time = start_time;
    }
    public String getStart_time() {
        return start_time;
    }
		/** 
     * 实际执行结束时间
     **/ 
    public String end_time;
    
    public void setEnd_time(String end_time) {
        this.end_time = end_time;
    }
    public String getEnd_time() {
        return end_time;
    }
		/** 
     * 新增数据量
     **/ 
    public int insert_count;
    
    public void setInsert_count(int insert_count) {
        this.insert_count = insert_count;
    }
    public int getInsert_count() {
        return insert_count;
    }
		/** 
     * 更新数据量
     **/ 
    public int update_count;
    
    public void setUpdate_count(int update_count) {
        this.update_count = update_count;
    }
    public int getUpdate_count() {
        return update_count;
    }
    /**
     * 任务类型
     **/ 
    public int task_type;
    
    public void setTask_type(int task_type) {
        this.task_type = task_type;
    }
    public int getTask_type() {
        return task_type;
    }
		/** 
     * 数据来源
     **/ 
    public String source_type;
    
    public void setSource_type(String source_type) {
        this.source_type = source_type;
    }
    public String getSource_type() {
        return source_type;
    }
		/** 
     * 执行次数
     **/ 
    public int execute_count;
    
    public void setExecute_count(int execute_count) {
        this.execute_count = execute_count;
    }
    public int getExecute_count() {
        return execute_count;
    }
		/** 
     * 创建人
     **/ 
    public int create_by;
    
    public void setCreate_by(int create_by) {
        this.create_by = create_by;
    }
    public int getCreate_by() {
        return create_by;
    }
		/** 
     * 更新人
     **/ 
    public int update_by;
    
    public void setUpdate_by(int update_by) {
        this.update_by = update_by;
    }
    public int getUpdate_by() {
        return update_by;
    }
		/** 
     * 创建时间
     **/ 
    public String create_time;
    
    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }
    public String getCreate_time() {
        return create_time;
    }
		/** 
     * 更新时间
     **/ 
    public String update_time;
    
    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }
    public String getUpdate_time() {
        return update_time;
    }
		/** 
     * 有效标志
     **/ 
    public int valid_flag;
    
    public void setValid_flag(int valid_flag) {
        this.valid_flag = valid_flag;
    }
    public int getValid_flag() {
        return valid_flag;
    }
		
    public int index;
    
	
    /*每个文件都有，表中没有*/
	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public List<Enterprise> enterpriseList ;

    public List<Enterprise> getEnterpriseList() {
        return enterpriseList;
    }

    public void setEnterpriseList(List<Enterprise> enterpriseList) {
        this.enterpriseList = enterpriseList;
    }

    @Override
    public String toString() {
        return "DataTask{" +
                "task_id=" + task_id +
                ", task_name='" + task_name + '\'' +
                ", keyword='" + keyword + '\'' +
                ", business_code='" + business_code + '\'' +
                ", business_name='" + business_name + '\'' +
                ", region_code='" + region_code + '\'' +
                ", region_name='" + region_name + '\'' +
                ", location='" + location + '\'' +
                ", location_lat='" + location_lat + '\'' +
                ", location_lng='" + location_lng + '\'' +
                ", execute_type='" + execute_type + '\'' +
                ", plan_time='" + plan_time + '\'' +
                ", start_time='" + start_time + '\'' +
                ", end_time='" + end_time + '\'' +
                ", insert_count=" + insert_count +
                ", update_count=" + update_count +
                ", task_type=" + task_type +
                ", source_type='" + source_type + '\'' +
                ", execute_count=" + execute_count +
                ", create_by=" + create_by +
                ", update_by=" + update_by +
                ", create_time='" + create_time + '\'' +
                ", update_time='" + update_time + '\'' +
                ", valid_flag=" + valid_flag +
                ", index=" + index +
                ", enterpriseList=" + enterpriseList +
                '}';
    }
}
